import http from "@/utils/http2.js"

/**
 * 查询供应商
 * @param data
 * @returns {Promise<axios.AxiosResponse<*>>}
 */
export function query(data) {
  return http.post("/api/set/supplier/list",data)
}
/**
 * 导出供应商
 * @param data
 * @returns {Promise<axios.AxiosResponse<any>>}
 */
export function exportPurchase(data){
  return http.post("/api/set/supplier/exportSup",data)
}

/**
 * 新增供应商
 * @param data
 * @returns {Promise<axios.AxiosResponse<any>>}
 */
export function add(data) {
  return http.post("/api/set/supplier/save",data)
}
